<template>
  <n-button tertiary type="warning" @click="handleExecuteClick" style="margin-left: 10px">
    <template #icon>
      <n-icon :component="CaretForwardCircleOutline"/>
    </template>
    {{ content }}
  </n-button>
</template>

<script lang="ts" setup>
import {CaretForwardCircleOutline} from "@vicons/ionicons5";

const props = withDefaults(defineProps<{
  content: string
}>(), {
  content: "手动执行"
});
const emits = defineEmits<{ (e: "handleClick"): void }>();
const handleExecuteClick = (): void => {
  emits("handleClick");
}
</script>